<template>
  <div>
     <!-- 商品分类导航 -->
    <TypeNav />
    <!--列表-->
    <ListContainer />
    <!--今日推荐-->
    <Recommend />
    <!-- 商品排行 -->
    <Rank />
    <!-- 猜你喜欢 -->
    <Like />
    <!--楼层-->
    <Floor v-for="floor in floorList" :key="floor.id" :floor="floor" :cname="'floor-swiper'+floor.id" />
    <!--商标-->
    <Brand />
  </div>
</template>

<script>
// import TypeNav from './TypeNav'
import ListContainer from './ListContainer'
import Recommend from './Recommend'
import Rank from './Rank'
import Like from './Like'
import Floor from './Floor'
import Brand from './Brand'
import {mapState,mapActions} from 'vuex'
export default {
  name:'Home',
  components:{
    ListContainer,
    Recommend,
    Rank,
    Like,
    Brand,
    Floor
  },
  computed:{
    ...mapState('home',["floorList"])
  },
  methods:{
    ...mapActions('home',["getFloorListData"])
  },
  mounted(){
    this.getFloorListData()
  },
}
</script>

<style>

</style>